home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / NLoad / LoadView.h < prev    next >
Encoding:
Text File  |  1991-04-10  |  655 b   |  38 lines

  1. #import <appkit/View.h>
  2.  
  3. #import "NLoadCommon.h"
  4.  
  5. typedef enum {ALL = -1, Q1MIN, Q5MIN, Q15MIN, QUEUES} QueueType;
  6.  
  7. void timer(DPSTimedEntry, double, id);
  8.  
  9. @interface LoadView : View
  10. {
  11.     DPSTimedEntry timedEntry;
  12.  
  13.     float maxLoad, load[(int) WIDTH][QUEUES];
  14.  
  15.     int index, queue, nErrors;
  16.  
  17.     const char *hostName;
  18. }
  19.  
  20. - initFrame:(const NXRect *) frameRect;
  21. - drawSelf:(const NXRect *) rects :(int) rectCount;
  22. - free;
  23.  
  24. - startTimer;
  25.  
  26. - (float) getLoadAverage:(int) offset;
  27. - loadAverage:(long *)vector loadScale:(int *)scale;
  28.  
  29. - drawOneLoad:(int) offset;
  30. - displayAll:(float) color;
  31.  
  32. - moveArray;
  33. - (float) maxOfArray;
  34.  
  35. - setHostName:(const char *) name;
  36.  
  37. @end
  38.